package  
{
	/**
	 * Node that defines the coordinate on a grid and if it is closed or not.
	 * @author Lorenzo Nuvoletta
	 */
	public class Node
	{	
		
		public var x:int, y:int; 		 		// Coordinates (Column, Row)		
		
		public var posX:Number, posY:Number;	// Coordinates on the grid		
		
		public var closed		:Boolean;	 	// Is it a closed node?
		public var visited		:Boolean;	 	// Did we visit it?
		
		public var parent		:int;		 	// id of the parent node
		
		public function Node(_x:int, _y:int)
		{
			x = _x;
			y = _y;			
		}
		
	}

}